package com.meet.exception;

public class BusinessException extends RuntimeException {

    private int code;

    private String errorCode;

    public BusinessException(int code, String message, String errorCode) {

        super(message);
        this.code = code;
        this.errorCode = errorCode;
    }

    public BusinessException(String message, String errorCode) {

        super(message);
        this.code = 400;
        this.errorCode = errorCode;
    }

    public BusinessException(String message) {

        super(message);
        this.code = 400;
        this.errorCode = "999999";
    }

    public int getCode() {

        return code;
    }

    public String getErrorCode() {

        return errorCode;
    }

}
